<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<script>
for(var a=0;a<=31;a++){
    var b=25-a;
    var c=31-a;
    if((b+c)==28){
        document.write('红球:'+b+'白球:'+a+'黑球：'+c);
    }
}
</script>
<body>
    
</body>
</html>